const pluginName = 'Plugin02';

class Plugin02 {
	constructor(options) {
		this.options = JSON.parse(JSON.stringify(options));
		console.log('Plugin02', 'constructor', options);
	}
	apply(compiler) {
		const { options } = this;
    	console.log('Plugin02', 'apply', options);
		compiler.hooks.run.tap(pluginName, (compilation) => {
			console.log('Plugin02', 'run', '构建过程开始');
		});
	}
}

module.exports = Plugin02;